
package controller
{
    import org.kolonitsky.alexey.mvcext.view.ContainerMediator;
    import org.kolonitsky.alexey.mvcext.view.GuideMediator;
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    import view.AppMediator;
    import view.DialogMediator;
    import view.ExportMediator;
    import view.ImportMediator;

    public class PrepareViewCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            super.execute(notification);
            var elfin:Elfin = notification.getBody() as Elfin;

            // register mediators required for all modules
            facade.registerMediator(new AppMediator());
            facade.registerMediator(new DialogMediator());

            facade.registerMediator(new ImportMediator());
            facade.registerMediator(new GuideMediator(elfin));
        }
    }
}
